﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using System.Net.Sockets;

namespace ConsoleApplication1
{
    class Connection
    {
        void startSystem(int port)
        {
            int i = 1;
            Console.WriteLine(i);
            Socket sock = new Socket(AddressFamily.InterNetwork,
                          SocketType.Stream,
                          ProtocolType.Tcp);
            int servPort = 30123;

            sock.Bind(new IPEndPoint(IPAddress.Any, servPort));
            sock.Listen(5);
            
        }

        void stopSystem()
        {
            int j = 2;
            Console.WriteLine(j);
        }
    }
}
